package org.chuan.base.service;

import org.chuan.base.query.BaseQuery;
import org.chuan.base.utils.PageList;

import java.util.List;

public interface IBaseService<T> {

    List<T> queryAll();

    T queryById(Long id);

    void delete(Long id);

    void save(T t);

    void update(T t);

    PageList<T> queryPage(BaseQuery query);

    void batchRemove(List<Long> ids);

}
